import httpInstance from '@/utils/http'

export const getFollowNotice = (uid) => {
  return httpInstance({
    url: `/api/notice/getFollowNotice/${uid}`,
    method: 'get',
  })
}

export const getCommentNotice = (uid) => {
  return httpInstance({
    url: `/api/notice/getCommentNotice/${uid}`,
    method: 'get',
  })
}

export const getLikesNotice = (uid) => {
  return httpInstance({
    url: `/api/notice/getLikesNotice/${uid}`,
    method: 'get',
  })
}

export const getNoticeCount = (uid) => {
  return httpInstance({
    url: `/api/notice/getNoticeCount/${uid}`,
    method: 'get',
  })
}

export const updateNotice = (type, uid) => {
  return httpInstance({
    url: `/api/notice/updateNotice/${type}?uid=${uid}`, // ✅ 传入当前用户 id
    method: 'put',
  })
}
